home *** CD-ROM | disk | FTP | other *** search
- on point value of the alpha goal (newAlpha)...
- if(Math.abs(newAlpha - _alpha) > 1){
- //gradually fade the alpha transparency from its current value, to the new value
- _alpha += (newAlpha - _alpha)/10;
- }else{
- //stop the gradual fade, and set the alpha value to the alpha Goal (newAlpha)
- _alpha = newAlpha;
- }
- //increment the count variable by one
- count++;
-
- //once the count reaches the predetermined delay value
- if